package com.android.multiplesmart.bean;

import com.google.gson.Gson;

public class AppVersionBean {


    /**
     * success : true
     * resultCode : 0
     * resultInfo : 成功
     * resultEnInfo : success
     * result : {"id":1,"appVersion":"1.0","appVersionContent":"App初版","appFilePath":"https://uat.metalingual.com.cn/upload//doc/dbf939f7031546b8a80a9c42e97d372d.txt","timeCreate":"2024-04-03T07:20:42.000+00:00","timeModify":"2024-04-03T07:20:45.000+00:00","remarks":null}
     * timestamp : 1714366929779
     */

    private boolean success;
    private int resultCode;
    private String resultInfo;
    private String resultEnInfo;
    private ResultBean result;
    private long timestamp;

    public static AppVersionBean objectFromData(String str) {

        return new Gson().fromJson(str, AppVersionBean.class);
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultInfo() {
        return resultInfo;
    }

    public void setResultInfo(String resultInfo) {
        this.resultInfo = resultInfo;
    }

    public String getResultEnInfo() {
        return resultEnInfo;
    }

    public void setResultEnInfo(String resultEnInfo) {
        this.resultEnInfo = resultEnInfo;
    }

    public ResultBean getResult() {
        return result;
    }

    public void setResult(ResultBean result) {
        this.result = result;
    }

    public long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(long timestamp) {
        this.timestamp = timestamp;
    }

    public static class ResultBean {
        /**
         * id : 1
         * appVersion : 1.0
         * appVersionContent : App初版
         * appFilePath : https://uat.metalingual.com.cn/upload//doc/dbf939f7031546b8a80a9c42e97d372d.txt
         * timeCreate : 2024-04-03T07:20:42.000+00:00
         * timeModify : 2024-04-03T07:20:45.000+00:00
         * remarks : null
         */

        private int id;
        private String appVersion;
        private String appVersionContent;
        private String appFilePath;
        private String timeCreate;
        private String timeModify;
        private Object remarks;

        public static ResultBean objectFromData(String str) {

            return new Gson().fromJson(str, ResultBean.class);
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getAppVersion() {
            return appVersion;
        }

        public void setAppVersion(String appVersion) {
            this.appVersion = appVersion;
        }

        public String getAppVersionContent() {
            return appVersionContent;
        }

        public void setAppVersionContent(String appVersionContent) {
            this.appVersionContent = appVersionContent;
        }

        public String getAppFilePath() {
            return appFilePath;
        }

        public void setAppFilePath(String appFilePath) {
            this.appFilePath = appFilePath;
        }

        public String getTimeCreate() {
            return timeCreate;
        }

        public void setTimeCreate(String timeCreate) {
            this.timeCreate = timeCreate;
        }

        public String getTimeModify() {
            return timeModify;
        }

        public void setTimeModify(String timeModify) {
            this.timeModify = timeModify;
        }

        public Object getRemarks() {
            return remarks;
        }

        public void setRemarks(Object remarks) {
            this.remarks = remarks;
        }
    }
}
